<?php

class last_news extends CI_Controller {

	function __construct()
	{
		parent::__construct();
		$this->load->model('last_news_model','last_news');
		//$this->load->helper('date');
		//$this->load->helper('app');

	}
	
	
	function index()
	{
		$data['title'] = "" ;
		$ses_member = isset($_SESSION['member']) ? $_SESSION['member']: '';
		$mid = $ses_member->mID;
		$data['list'] = $this->last_news->get_all_news($mid, 20, 0);//trit($data);
		$this->site_library->load('last_news',$data) ;
	}
	
	
	
}

/* End of file welcome.php */
/* Location: ./system/application/controllers/welcome.php */